package com.zhengx.moduletest.di;


import com.zhengx.baselib.di.ForActivity;
import com.zhengx.moduletest.MainActivity;
import com.zhengx.moduletest.ui.common.NavigationController;

import dagger.Module;
import dagger.Provides;


/**
 * name：MainActivityModule
 * class: describe
 * author: zhengx
 * create_time: 2019/2/26
 */
@Module(subcomponents = {FragmentComponent.class},
        includes = {ViewModelModule.class})
public class MainActivityModule {

    @ForActivity
    @Provides
    NavigationController provideNavigationController(MainActivity activity) {
        return new NavigationController(activity);
    }

//    @ForActivity
//    @Provides
//    TestBean provideTestBean(MainActivity activity) {
//        return new TestBean(activity.getLocalClassName());
//    }
}
